﻿@{
    ViewBag.Title = "用户登陆";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script>
    $(function () {
        $("#Login").click(function () {
            $.post("/User/UserLogin", { UserName: $("input[name='UserName']").val(), Password: $("input[name='Password']").val() }, function (data) {
                if (data.Result) {
                    location.href = "/User/Home";
                }
                else {
                    
               }
            })
        })
    })
</script>
<div class="border" style="margin:5px; margin-bottom:20px;">
<div style="margin:20px; color:#a2d312; font-size:30px;"> 登陆 </div>
<div class="poitline"></div>
<div class="reg_left">用户名：</div><div class="reg_mid"><input name="UserName" id="UserName" type="text" /></div><div class="reg_right" ></div>
<div class="clear"></div>
<div class="reg_left">密码：</div><div class="reg_mid"><input name="Password" id="Password" type="password" /></div><div class="reg_right" ></div>
<div class="clear"></div>
    <div class="reg_left">其他方式：</div><div class="reg_mid"><a href="https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=100464832&redirect_uri=http://www.ud2002.com/OpenLogin/QQ&scope=get_user_info,add_share,add_t,add_idol"><img src="/content/image/qqlogin.jpg" /></a> <a href="https://api.weibo.com/oauth2/authorize?client_id=3192018346&response_type=code&redirect_uri=http://www.ud2002.com/OpenLogin/Weibo"><img src="/content/image/weibologin.jpg" /></a></div><div class="reg_right" ></div>
<div class="clear"></div>
     
<div class="reg_left"></div><div class="reg_mid">
    <input id="Login" type="button" value="登陆" /></div> <div class="reg_right" > </div>
<div class="clear"></div>
  
<div class="poitline"></div>
    <br /><br /><br /><br /><br /><br />
</div>